package edu.kjxy.day01;

/**
 * 功能:Thread.java类的两个构造函数可以传递接口，支持传入一个Runnable接口的对象
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 14:10
 */
public class RunnableTest {
    public static void main(String[] args) {
        Runnable runnable = new MyRunnable();
        Thread thread = new Thread(runnable);
        thread.start();
        System.out.println("运行结束!");
    }
}
